package com.example.kevin.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class AppException extends RuntimeException {
    private Integer code;
    private String message;

    public AppException(AppExceptionMsg appExceptionMsg) {
        super();
        this.code = appExceptionMsg.getCode();
        this.message = appExceptionMsg.getMess();
    }
}
